//
//  XLGResult.h
//  etionCBLogic
//
//  Created by wjxfhxy on 15-4-17.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XLGResult : NSObject

@property(nonatomic,assign,readonly) NSInteger outResult;
@property(nonatomic,retain,readonly) id outObj;
@property(nonatomic,retain,readonly) NSError *outError;

+ (XLGResult*)result;

+ (XLGResult*)resultWithOutResult:(NSInteger)outResult;

+ (XLGResult*)resultWithOutResult:(NSInteger)outResult outObj:(id)outObj;

+ (XLGResult*)resultWithOutResult:(NSInteger)outResult outObj:(id)outObj outError:(NSError*)outError;

@end

@interface XLGResult (OutObj)

@property(nonatomic,retain,readonly) NSString* outObjString;

@property(nonatomic,retain,readonly) NSArray* outObjArray;

@property(nonatomic,retain,readonly) NSDictionary* outObjDictionary;

@property(nonatomic,retain,readonly) NSNumber* outObjNumber;

@property(nonatomic,readonly) BOOL outObjBool;

@property(nonatomic,readonly) NSInteger outObjInt;

@property(nonatomic,readonly) NSUInteger outObjUInt;

@end